using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DAL;
using DTO;
using BLL;
using System.Data.OleDb;
namespace QLSV1
{
    public partial class frmdeletemon : Form
    {
        public frmdeletemon()
        {
            InitializeComponent();
        }

        private void xoa_Click(object sender, EventArgs e)
        {
            //MONHOC mon = new MONHOC();
            MonhocDAL mondal = new MonhocDAL();
            mondal.DELETEMONHOC(Convert.ToByte(txtmamon.Text));
        }

        private void frmdeletemon_Load(object sender, EventArgs e)
        {
            MonhocDAL mondal = new MonhocDAL();
            dataGridView1.DataSource = mondal.GetAll();
            dataGridView1.AutoResizeColumns();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MonhocDAL mondal = new MonhocDAL();
            dataGridView1.DataSource = mondal.GetAll();
            dataGridView1.AutoResizeColumns();
        }
    }
}